<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>CMS后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link th:replace="resource :: css" rel="stylesheet"/>
</head>
<body>
<div class="container-fluid">
    <form class="form-horizontal" role="form" action="update" method="post">
        <input type="hidden" name="id" value="$!entity.id">
        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-10">
                <select class="form-control" name="enable">
                    <option value="true" th:selected="${entity.enable}? 'selected'">启用</option>
                    <option value="false" th:selected="${!entity.enable}? 'selected'">禁用</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">用户组名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" placeholder="" name="name" value="$!entity.name">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">单页面</label>
            <div class="col-sm-10">
                <input type="checkbox" class="tfbox" name="manageChannel" value="$!entity.manageChannel" th:checked="${entity.manageChannel}?true:false"/>
                <lable>栏目管理</lable>
                <input type="checkbox" class="tfbox" name="manageArticle" value="$!entity.manageArticle" th:checked="${entity.manageArticle}?true:false"/>
                <lable>文章管理</lable>
                <input type="checkbox" class="tfbox" name="manageComment" value="$!entity.manageComment" th:checked="${entity.manageComment}?true:false"/>
                <lable>评论管理</lable>
                <input type="checkbox" class="tfbox" name="manageGroup" value="$!entity.manageGroup" th:checked="${entity.manageGroup}?true:false"/>
                <lable>用户组管理</lable>
                <input type="checkbox" class="tfbox" name="manageUser" value="$!entity.manageUser" th:checked="${entity.manageUser}?true:false"/>
                <lable>用户管理</lable>
                <input type="checkbox" class="tfbox" name="manageConfig" value="$!entity.manageConfig" th:checked="${entity.manageConfig}?true:false"/>
                <lable>配置管理</lable>
                <input type="checkbox" class="tfbox" name="manageLog" value="$!entity.manageLog" th:checked="${entity.manageLog}?true:false"/>
                <lable>日志管理</lable>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">描述</label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="3" name="info">$!entity.info</textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">保存</button>
                <a class="btn btn-success" href="list">返回</a>
            </div>
        </div>
    </form>
</div>
<script th:replace="resource :: js"></script>
#include("commons/support-image.vm")
</body>
</html>
